package com.qixin.modules.ea.service;

import com.qixin.modules.ea.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qixin.modules.ea.vo.ListPageVo;
import com.qixin.modules.eaApplication.entity.EaEntertainApply;
import com.qixin.modules.eaBasic.vo.EaTaskVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 招待费报销单
 * @Author: qixin-boot
 * @Date:   2021-07-06
 * @Version: V1.0
 */
public interface IEaEntertainServiceCopy extends IService<EaEntertain> {

	/**
	 * 添加一对多
	 *
	 */
	public Map<String,Object> saveMain(EaEntertain eaEntertain, List<EaBookDetail> eaBookDetailList, List<EaEntertainApply> eaApplyDetailList, List<EaBorrowSubtract> eaBorrowSubtractList, List<EaEntertainReceptionActivity> eaEntertainReceptionActivities) ;

	/**
	 * 修改一对多
	 *
	 */
	public Map<String,Object> updateMain(EaEntertain eaEntertain, List<EaBookDetail> eaBookDetailList, List<EaEntertainApply> eaApplyDetailList, List<EaBorrowSubtract> eaBorrowSubtractList, List<EaEntertainReceptionActivity> eaEntertainReceptionActivities);

	/**
	 * 删除一对多
	 */
	public Map<String,Object> delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	//查询招待费报销单详情
	public Map<String,Object> selectById(String id);

	//审批/退回待办
	public Map<String,Object> audit(EaTaskVo eaTaskVo);

	//查询招待费报销单信息列表
	public Map<String,Object> list(ListPageVo listPageVo);


	EaEntertain queryById(String billId);
}
